package com.ruoyi.admin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 授权应用对象 corp_company_agents
 * 
 * @author Jimmy
 * @date 2022-08-03
 */
public class CorpCompanyAgents extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 公司ID */
    @Excel(name = "公司ID")
    private Integer companyId;

    /** AppId */
    @Excel(name = "AppId")
    private Integer appId;

    /** CorpId */
    @Excel(name = "CorpId")
    private String corpid;

    /** SuiteId */
    @Excel(name = "SuiteId")
    private String suiteId;

    /** AgentId */
    @Excel(name = "AgentId")
    private Integer agentid;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String name;

    /** Logo */
    @Excel(name = "Logo")
    private String squareLogoUrl;

    /** 权限等级 */
    @Excel(name = "权限等级")
    private Integer level;

    /** 永久授权码 */
    @Excel(name = "永久授权码")
    private String permanentCode;

    /** 可见部门 */
    @Excel(name = "可见部门")
    private String allowParty;

    /** 可见用户 */
    @Excel(name = "可见用户")
    private String allowUser;

    /** 可见标签 */
    @Excel(name = "可见标签")
    private String allowTag;

    /** 额外部门 */
    @Excel(name = "额外部门")
    private String extraParty;

    /** 额外成员 */
    @Excel(name = "额外成员")
    private String extraUser;

    /** 额外标签 */
    @Excel(name = "额外标签")
    private String extraTag;

    /** 安装用户ID */
    @Excel(name = "安装用户ID")
    private String userid;

    /** 安装人姓名 */
    @Excel(name = "安装人姓名")
    private String username;

    /** 安装人头像 */
    @Excel(name = "安装人头像")
    private String avatar;

    /** 应用等级 */
    @Excel(name = "应用等级")
    private Integer vipLevel;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overtime;

    /** 购买人数 */
    @Excel(name = "购买人数")
    private Integer people;

    /** 应用管理员 */
    @Excel(name = "应用管理员")
    private String admin;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCompanyId(Integer companyId) 
    {
        this.companyId = companyId;
    }

    public Integer getCompanyId() 
    {
        return companyId;
    }
    public void setAppId(Integer appId) 
    {
        this.appId = appId;
    }

    public Integer getAppId() 
    {
        return appId;
    }
    public void setCorpid(String corpid) 
    {
        this.corpid = corpid;
    }

    public String getCorpid() 
    {
        return corpid;
    }
    public void setSuiteId(String suiteId) 
    {
        this.suiteId = suiteId;
    }

    public String getSuiteId() 
    {
        return suiteId;
    }
    public void setAgentid(Integer agentid) 
    {
        this.agentid = agentid;
    }

    public Integer getAgentid() 
    {
        return agentid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSquareLogoUrl(String squareLogoUrl) 
    {
        this.squareLogoUrl = squareLogoUrl;
    }

    public String getSquareLogoUrl() 
    {
        return squareLogoUrl;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setPermanentCode(String permanentCode) 
    {
        this.permanentCode = permanentCode;
    }

    public String getPermanentCode() 
    {
        return permanentCode;
    }
    public void setAllowParty(String allowParty) 
    {
        this.allowParty = allowParty;
    }

    public String getAllowParty() 
    {
        return allowParty;
    }
    public void setAllowUser(String allowUser) 
    {
        this.allowUser = allowUser;
    }

    public String getAllowUser() 
    {
        return allowUser;
    }
    public void setAllowTag(String allowTag) 
    {
        this.allowTag = allowTag;
    }

    public String getAllowTag() 
    {
        return allowTag;
    }
    public void setExtraParty(String extraParty) 
    {
        this.extraParty = extraParty;
    }

    public String getExtraParty() 
    {
        return extraParty;
    }
    public void setExtraUser(String extraUser) 
    {
        this.extraUser = extraUser;
    }

    public String getExtraUser() 
    {
        return extraUser;
    }
    public void setExtraTag(String extraTag) 
    {
        this.extraTag = extraTag;
    }

    public String getExtraTag() 
    {
        return extraTag;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setVipLevel(Integer vipLevel) 
    {
        this.vipLevel = vipLevel;
    }

    public Integer getVipLevel() 
    {
        return vipLevel;
    }
    public void setOvertime(Date overtime) 
    {
        this.overtime = overtime;
    }

    public Date getOvertime() 
    {
        return overtime;
    }
    public void setPeople(Integer people) 
    {
        this.people = people;
    }

    public Integer getPeople() 
    {
        return people;
    }
    public void setAdmin(String admin) 
    {
        this.admin = admin;
    }

    public String getAdmin() 
    {
        return admin;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyId", getCompanyId())
            .append("appId", getAppId())
            .append("corpid", getCorpid())
            .append("suiteId", getSuiteId())
            .append("agentid", getAgentid())
            .append("name", getName())
            .append("squareLogoUrl", getSquareLogoUrl())
            .append("level", getLevel())
            .append("permanentCode", getPermanentCode())
            .append("allowParty", getAllowParty())
            .append("allowUser", getAllowUser())
            .append("allowTag", getAllowTag())
            .append("extraParty", getExtraParty())
            .append("extraUser", getExtraUser())
            .append("extraTag", getExtraTag())
            .append("userid", getUserid())
            .append("username", getUsername())
            .append("avatar", getAvatar())
            .append("vipLevel", getVipLevel())
            .append("overtime", getOvertime())
            .append("people", getPeople())
            .append("admin", getAdmin())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
